package ar.com.cema.methodology.analyzer.model;

import javax.persistence.Embeddable;

@Embeddable
public class Person implements Comparable<Person> {
	private String name;
	private String position;
	private String company;
	private String age;
	private String email;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPosition() {
		return position;
	}
	public void setPosition(String position) {
		this.position = position;
	}
	public String getCompany() {
		return company;
	}
	public void setCompany(String company) {
		this.company = company;
	}
	public String getAge() {
		return age;
	}
	public void setAge(String age) {
		this.age = age;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	@Override
	public int compareTo(Person o) {
		return this.getEmail().compareTo(o.getEmail());
	}
	
}
